#ifndef BOX_H_INCLUDED
#define BOX_H_INCLUDED

#include "common.h"
#include "block.h"

class Box:public Block{

    private:
        int _coord[4];

        ALLEGRO_BITMAP* _img;

        bool _onTarget;

        Resources::e_Images getPoleImg(int);

    public:

        Box(int, int, int , int);

        inline int type() { return BOX; }
        std::string saveString();
        Block* copy();

        ALLEGRO_BITMAP* render();

        void mount_img();

        inline int coord(int c) const { return _coord[c]; }

        bool &onTarget() { return _onTarget;}

        ~Box();
};

#endif // BOX_H_INCLUDED
